import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import router from './router'
import store from './store/index'
import iView from 'iview';
import 'iview/dist/styles/iview.css';    // 使用 CSS
import * as echarts from 'echarts'
import Home from './components/Home'
import sales_bar from './components/sales_bar'
import category_pie from './components/category_pie'
import profit_line from './components/profit_line'
import purchase_add from './components/purchase_add'
import sales_add from './components/sales_add'



Vue.config.productionTip = false
Vue.prototype.$echarts = echarts


Vue.component('s-Home', Home);
Vue.component('sales_bar', sales_bar);
Vue.component('category_pie', category_pie);
Vue.component('profit_line', profit_line);
Vue.component('purchase_add',purchase_add);
Vue.component('sales_add',sales_add);



Vue.use(iView);
Vue.use(VueRouter); 


new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App),
})
